<?php

require_once 'Zend/View/Helper/Abstract.php';

class Core_View_Helper_Navigation_subMenuRenderer extends Core_View_Helper_Navigation_Abstract
{
    protected $_attribs = array(
        'indent'    => 4,
        'ulClass'   => 'vlist'
    );

    public function subMenuRenderer($attribs = array())
    {
        $this->_setAttribs($attribs);

        // render partial
        if ($this->_issetPartial($attribs)) {
            return $this->view->navigation()->menu()->renderPartial(null, $attribs['partial']);
        }
        // render submenu
        return $this->view->navigation()->menu()->renderSubMenu(null, $this->_getAttrib('ulClass'), $this->_getAttrib('indent'));
    }
}